<template>
  <view class="my-container">
    <my-login v-if="!token"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  // 导入mixins
  import badgeMix from '@/mixins/tabbar-badge.js';
  import {mapState} from 'vuex';
  export default {
    // 设置mixins
    mixins:[badgeMix],
    data() {
      return {
        
      };
    },
    computed:{
      ...mapState('m_user',['token'])
    },
  }
</script>

<style lang="scss">
  page, .my-container{
    height: 100vh;
  }
</style>
